<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 转义
      // const str1 = 'hello \' str1';
      // const str2 = "hello \" str2";
      // const str2 = 'hello " str2';
      // const str2 = `hello " ' str2`;
      const str2 = `hello \` \\ str2 \u{1F602} 🙂`;
      const name = "jack";
      const num = 20;
      function add(x, y) {
        return x + y;
      }
      const str3 = `
      hello ${name}, age \n is ${num + 10}, 
      age is ${add(10, 10)}`;
      console.log(str3, str2);
    </script>
  </body>
</html>
